/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

import java.util.Set;
import play.db.jpa.*;
import javax.persistence.*;

/**
 *
 * @author Zlobniy
 */
@Entity
@Table(name="country")
public class Country extends Model{
    
    @OneToMany(cascade= CascadeType.PERSIST)
    private Set<City> cityList; 
    
    private String name;
    private String language;
    private String currency;
    
    public Country(String name, String language, String currency){
        this.name = name;
        this.language = language;
        this.currency = currency;
    }

    public Set<City> getCityList() {
        return cityList;
    }

    public void setCityList(Set<City> cityList) {
        this.cityList = cityList;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
}
